/*
 * Tuple.java
 */

package org.owasp.scrubbr.db;

import java.util.List;


public class Tuple {
    
    private String name;
    private boolean tainted;
    private String value;
    private String cleanedValue;
    private List errors;
    private int columnType;

    public Tuple(String name, String value) {
        this.setTainted(false);
        this.setName(name);
        this.setValue(value);
    }
    
    public Tuple (String name, String value, String cleanedValue, List errors ) {
        this.setTainted(true);
        this.setName(name);
        this.setValue(value);
        this.setCleanedValue(cleanedValue);
        this.setErrors(errors);
    }

    public int getColumnType() {
        return columnType;
    }

    public List getErrors() {
        return errors;
    }
    
    public void setErrors(List errors) {
        this.errors = errors;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isTainted() {
        return tainted;
    }

    public void setTainted(boolean tainted) {
        this.tainted = tainted;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getCleanedValue() {
        return cleanedValue;
    }

    public void setCleanedValue(String cleanedValue) {
        this.cleanedValue = cleanedValue;
    }
    
    public String toString() {
        return value;
    }
    
}
